package com.blue.wechat.invoke.annotation;

import com.blue.core.file.IClassHandler;
import com.blue.wechat.invoke.WechatContainer;

/**
 * 扫描微信接口配置类
 * 
 * @author zhengj
 * @since 1.0 2017年1月26日
 */
public class WechatInvokerClassHandler implements IClassHandler
{
	private WechatContainer wechatContainer;

	public WechatInvokerClassHandler(WechatContainer wechatContainer)
	{
		this.wechatContainer = wechatContainer;
	}

	@Override
	public void handle(Class<?> clazz)
	{
		if (clazz.isAnnotationPresent(WechatUrl.class))
		{
			wechatContainer.parse(clazz);
		}
	}
}
